Page({
    data: {
        code: '078439',
        name: 'Gary',
        start: '2025-08-21 21:09:19',
        end: '2025-08-21 21:09:19',
        sender: '15089601605',
        sendTime: '2025-08-21 21:09:19'
    },
    onLoad(q) {
        if (q) {
            this.setData({
                code: q.code || this.data.code,
                name: q.name || this.data.name,
                start: q.start || this.data.start,
                end: q.end || this.data.end,
                sender: q.sender || this.data.sender,
                sendTime: q.sendTime || this.data.sendTime
            })
        }
    },
    onBack() { wx.navigateBack(); },
    onDelete() { wx.showToast({ title: '删除（占位）', icon: 'none' }); }
})